package cas.ihep.pwa.evtgen;

import java.util.Random;

public class EvtRandom {

    private static Random rand=new Random();

    public static double flat(){
        return rand.nextDouble();
    }

    public static double flat(double min,double max){
        if (min>max){
            double temp=max;
            max=min;
            min=temp;
        }
        return rand.nextDouble()*(max-min)+min;
    }
}
